<?php
	App::uses('ExceptionRenderer', 'Error');
	class AppExceptionRenderer extends ExceptionRenderer {
  	   protected function _getController($exception) {
        	if (!$request = Router::getRequest(true)) {
	            $request = new CakeRequest();
	        }
	        $response = new CakeResponse(array('charset' => Configure::read('App.encoding')));
	        $controller = new Controller($request, $response);
	        $controller->viewPath = 'Errors';
	        $controller->layout = null;
	        return $controller;
    	}
}
?>